# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=waybar
pkgver=0.9.2
pkgrel=1
pkgdesc="Highly customizable Wayland bar for Sway and Wlroots based compositors"
url="https://github.com/Alexays/Waybar/"
arch="all"
license="MIT"
depends="ttf-font-awesome"
makedepends="meson gtkmm3-dev jsoncpp-dev spdlog-dev fmt-dev libinput-dev
	libnl3-dev pulseaudio-dev libmpdclient-dev eudev-dev scdoc gtk-layer-shell-dev"
subpackages="$pkgname-doc"
source="Waybar-$pkgver.tar.gz::https://github.com/Alexays/Waybar/archive/$pkgver.tar.gz
	"
options="!check" # No test suite
builddir="$srcdir/Waybar-$pkgver"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="4df4a947605d6f7d231497f2ed6646eaae8024c5d0aab35d39b50836a5e2de6634663fb6373f70fc3c370e124e130fdb978e7aeaebb2087566bbcad0ec6d5e75  Waybar-0.9.2.tar.gz"
